﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace JX.Infrastructure.Consul
{
    /// <summary>
    /// 服务提供者
    /// </summary>
    public interface IConsulServiceProvider
    {
        /// <summary>
        /// 根据服务名称，得到服务地址列表
        /// </summary>
        /// <param name="serviceName"></param>
        /// <param name="tag"></param>
        /// <param name="passingOnly"></param>
        /// <returns></returns>
        Task<IList<string>> GetServicesAsync(string serviceName, string tag = "", bool passingOnly = true);
    }
}
